<template>
  <div class="common-layout">
    <el-container>
      <el-header>
        <TopMenu :disabled-count="false" :disabled-trade="false" :disabled-message="false"></TopMenu>
      </el-header>
      <el-container style="margin: 20px;">
        <el-aside width="200px">
          <el-menu active-text-color="#1684FC" background-color="#FE742B" class="el-menu-vertical-demo"
            default-active="1" text-color="#BEBEBE" style="height: 450px;">
            <el-menu-item index="1" @click="handleClick()">
              <template #title>
                <el-icon>
                  <CircleCheck />
                </el-icon>
                <span>碳核算数据监管</span>
              </template>
            </el-menu-item>
            <el-menu-item index="2" @click="handleClick()">
              <template #title>
                <el-icon>
                  <ShoppingCart />
                </el-icon>
                <span>碳交易数据监管</span>
              </template>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <template v-if="select_Key">
            <CountSupervision></CountSupervision>
          </template>
          <template v-if="!select_Key">
            <TradeSupervision></TradeSupervision>
          </template>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup lang='ts'>
import { ref } from 'vue'
import TopMenu from '@/components/Menu/TopMenu.vue';
import CountSupervision from './CountSupervision.vue'
import TradeSupervision from './TradeSupervision.vue';

const select_Key = ref(true)

function handleClick() {
  this.select_Key = !(this.select_Key)
}

</script>

<style scoped>

</style>
